package com.feige.service;

import com.feige.result.AjaxResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;


/**
 * @author feige<br />
 * @ClassName: UploadService <br/>
 * @Description: <br/>
 * @date: 2021/3/1 15:53<br/>
 */
public interface UploadService {
    /**
     * @description: 上传文件图片，语音，文件等
     * @author: feige
     * @date: 2021/3/1 15:54
     * @param	file
     * @return: com.feige.utils.result.AjaxResult
     */
    AjaxResult upload(MultipartFile file) throws IOException;

    /**
     *
     * @description: 上传base64Data格式的图片
     * @author: feige
     * @date: 2021/3/1 15:54
     * @param	base64Data
     * @return: com.feige.utils.result.AjaxResult
     */
    AjaxResult uploadBase64Data(String base64Data);
}
